import request from '@/api/axios'

export const getLoginParam = (wxRedirectUri: string) => {
  return request({
    url: '/user/weixin/getLoginParam',
    method: 'get',
    params: {
      wxRedirectUri
    }
  })
}

export const getphoneCode = (phone: string) => {
  return request({
    url: `/sms/send/${phone}`,
    method: 'get'
  })
}

export const Login = (data: any) => {
  return request({
    url: `/user/login`,
    method: 'post',
    data
  })
}